home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Sunday Times: The Month 2004 October
/
The Sunday Times - The Month 2004-10.iso
/
pc
/
assets
/
bespoke
/
music
/
music_promo.swf
/
scripts
/
frame_1
/
DoAction.as
Wrap
Text File
|
2003-11-21
|
1KB
|
74 lines
function addLink(mc)
{
Links[mc.link] = mc;
}
function getMCfromLink(Item)
{
if(Links[Item] == null)
{
var arr = [];
while(Item != sideMenu.ItemHome)
{
arr.unshift(Item._name.split("_").pop());
Item = Item._parent._parent;
}
var str = arr.join("/");
Links[Item] = Links[str];
}
return Links[Item];
}
function removeLinkListener()
{
Tardis.sideMenu.EB.removeListener(this);
}
function init()
{
gotoAndPlay(2);
}
function doOver(Item)
{
var mc = eval("btn_" + Item);
mc.gotoAndStop("over");
}
function doOut(Item)
{
var mc = eval("btn_" + Item);
mc.gotoAndStop("off");
}
function txtOver(num)
{
var mc = eval("btn_" + num);
mc.gotoAndStop("over");
_parent.preview.doOver(num);
Tardis.sideMenu.doOver(num);
}
function txtOut(num)
{
var mc = eval("btn_" + num);
mc.gotoAndStop("off");
_parent.preview.doOut(num);
Tardis.sideMenu.doOut(num);
}
function txtUp(num)
{
Tardis.sideMenu.doUp(num);
}
function displayPromo()
{
promo_mc._visible = true;
img_mc._visible = false;
}
function hidePromo()
{
promo_mc._visible = false;
img_mc._visible = true;
}
Links = {};
Tardis.sideMenu.EB.addListener(this);
onReady();
this.onUnload = function()
{
removeLinkListener();
this.onUnload = null;
};